<template>
    <div :style="{'display':$store.state.request_info!='' ? 'flex':'none'}" class="prompt">
       <ul class="info">
           <li class="info_detail del_all">
               <span v-show="($store.state.request_info).length>2" class="del" @click="delAll">一键清除</span>
           </li>
           <li class=" info_detail"
               v-for="(item,index) in $store.state.request_info"
               :key="index"
               :style="{'--count':index+'s'}">
               提示：{{item}}
               <img src="../../../public/static/tishi.png" alt="" title="提示信息">
           </li>

       </ul>

    </div>

</template>

<script>
export default {
    name: "PromptInformation",
    methods:{
        delAll(){
            this.$store.commit("delRequestInfoAll")
        }
    }
}
</script>

<style scoped>
.prompt{
    z-index: 999999999;
}
.info{
    position: absolute;
    list-style: none;
    top: 10%;
    left: 50%;
    transform: translate(-50%);
    min-height: 45px;
    min-width: 300px;
    max-height: 700px;
    overflow: auto;
    padding: 3px 10px;
    font-size: 14px;
    color: #f1f5f4;
    border-radius: 0.4vw;
}
.info::-webkit-scrollbar {
    width: 5px;
}
.info::-webkit-scrollbar-thumb {
    border-radius: 1px;
    background: #f1c3d5;
}
.info::-webkit-scrollbar-track {
    border-radius: 0;
    background: #f9f9fc;
}
.info_detail{
    display: flex ;
    justify-content: space-between;
    align-items: center;
    background: rgba(91, 95, 103, 0.6);
    padding: 5px !important;
    border-radius: 3px;
    margin: 5px !important;
}
.info p::before{
    display: inline-block;
    content: "提示：";
    padding: 0 4px;
    color: #ee4f4f;
}
.del_all{
    background: transparent;
    padding: 5px !important;
    margin: 5px !important;
    min-height: 40px;
}
.del_all .del{
    display: inline-block;
    height: 100%;
    padding: 5px 5px;
    background: #3586f1;
    cursor:pointer;
    z-index: 9999;
}
.del_all .del:hover{
    opacity: .7 !important;
    background: #f12626;
}
</style>